package org.jjche.serialize.transformer;

import org.jjche.common.annotation.Dict;
import org.jjche.common.transformer.IEnumTransformer;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Component;


/**
 * 枚举转换器
 *
 * @author R
 */
@Component
public class EnumTransformer implements IEnumTransformer<Dict> {

    @Override
    @SuppressWarnings("unchecked")
    public String transform(@NonNull Dict dict) {
        return dict.getText();
    }
}
